﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildWarResult extends IMessageBase
    {
        public var isWin:Boolean;
        public var formerScore:int;
        public var nowScore:int;
        public var anotherScore:int;
        public var star:Number;
        public var baseExploit:int;
        public var baseResource:int;
        public var baseContribute:int;
        public var extraExploit:int;
        public var extraResource:int;
        public var extraContribute:int;
        public const _type:int = 5092;
        public static var _regist:SGuildWarResult = new SGuildWarResult(true);

        public function SGuildWarResult(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildWarResult();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isWin);
            param1.writeInt(this.formerScore);
            param1.writeInt(this.nowScore);
            param1.writeInt(this.anotherScore);
            param1.writeDouble(this.star);
            param1.writeInt(this.baseExploit);
            param1.writeInt(this.baseResource);
            param1.writeInt(this.baseContribute);
            param1.writeInt(this.extraExploit);
            param1.writeInt(this.extraResource);
            param1.writeInt(this.extraContribute);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isWin = param1.readBool();
            this.formerScore = param1.readInt();
            this.nowScore = param1.readInt();
            this.anotherScore = param1.readInt();
            this.star = param1.readDouble();
            this.baseExploit = param1.readInt();
            this.baseResource = param1.readInt();
            this.baseContribute = param1.readInt();
            this.extraExploit = param1.readInt();
            this.extraResource = param1.readInt();
            this.extraContribute = param1.readInt();
            return;
        }// end function

    }
}
